import axios from '../../axios'

/* 
 * 字典分类管理模块
 */

// 保存
export const save = (data) => {
    return axios({
        url: '/pk/save',
        method: 'post',
        data
    })
}

export const getPk = (data) => {
    return axios({
        url: '/pk/getPk',
        method: 'post',
        data
    })
}
// 平库出库

// 删除
export const pkDelete = (data) => {
    return axios({
        url: '/pk/delete',
        method: 'post',
        data
    })
}

// 删除
export const pkTerminate = (data) => {
    return axios({
        url: '/pk/terminate',
        method: 'post',
        data
    })
}
// 分页查询
export const findPage = (data) => {
    return axios({
        url: '/pk/findPage',
        method: 'post',
        data
    })
}
export const FindCoreStockPage = (data) => {
    return axios({
        url: '/pk/FindCoreStockPage',
        method: 'post',
        data
    })
}
// 同步批次
export const enginePk = (data) => {
    return axios({
        url: '/pk/enginePk',
        method: 'post',
        data
    })
}
export const printPk = (data) => {
    return axios({
        url: '/pk/printPk',
        method: 'post',
        data
    })
}
export const printPkDiff = (data) => {
    return axios({
        url: '/pk/printPkDiff',
        method: 'post',
        data
    })
}


export const checkDetail = (data) => {
    return axios({
        url: '/pk/checkDetail',
        method: 'post',
        data
    })
}

export const finshPk = (data) => {
    return axios({
        url: '/pk/finshPk',
        method: 'post',
        data
    })
}

export const selectStock = (data) => {
    return axios({
        url: '/pk/selectStock/' + data,
        method: 'get'
    })
}

export const hisPage = (data) => {
    return axios({
        url: '/pk/hisPage',
        method: 'post',
        data
    })
}

export const getDetials = (data) => {
    return axios({
        url: '/pk/getDetials',
        method: 'post',
        data
    })
}


